<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>企业员工工资管理-科室职责</title>
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport"
          content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi"/>
    <meta http-equiv="Cache-Control" content="no-siteapp"/>

    <link rel="shortcut icon" href="favicon.ico" type="image/x-icon"/>
    <link rel="stylesheet" href="static/css/font.css">
    <link rel="stylesheet" href="static/css/xadmin.css">
    <link rel="stylesheet" href="static/lib/layui/css/layui.css">

</head>
<body>
<div class="x-nav">
      <span class="layui-breadcrumb">
        <a>首页</a>
        <a>个人信息</a>
        <a>
          <cite>科室职责</cite></a>
      </span><!---->
    <a class="layui-btn layui-btn-small" style="line-height:1.6em;margin-top:3px;float:right"
       href="javascript:location.replace(location.href);" title="刷新">
        <i class="layui-icon" style="line-height:30px">ဂ</i></a>
</div>
<br>


<div class="employee-info-container">
    <div class="resp-title" id="depName"></div>
    <div id="resp"></div>
</div>




</body>

<style>
    .employee-info-table {
        width: 100%;
    }

    .employee-info-input {
        width: 100%;
    }

    .employee-info-container {
        padding: 16px;
    }

    .employee-info-container-left {

    }

    .my-flex-row {
        display: flex;
        flex-direction: row;
        align-items: center;

        flex-grow: 0;
        flex-shrink: 0;
    }

    .employee-info-row {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: left;

        margin-bottom: 2rem;
    }

    .employee-info-row-item {
        margin-right: 5rem;
    }

    .employee-info-row-item-name {
        display: inline-block;
        margin-right: 1rem;
        min-width: 4rem;
    }

    .employee-info-row-item-input {
        width: 20rem;
    }

    .employee-info-modify {
        margin-top: 2rem;
    }

    .resp-title {
        margin-bottom: 1rem;

        font-size: 24px;
        text-align: center;
    }
</style>

<script type="text/javascript" src="static/js/jquery-3.3.1.js"></script>
<script type="text/javascript" src="static/lib/layui/layui.js"></script>
<script type="text/javascript" src="static/js/xadmin.js"></script>
<script>
    var dRemark = null;
    var pDuty = null;
    window.onload = function () {
        $.ajax({
            url: "responsibility/getDepartmentResp.do",
            type: "get",
            dataType: "json",
            success: function (data) {
                let responsibility = data.depResponsibility;
                let departmentName = data.depName;
                $("#resp").html(responsibility);
                $("#depName").html(departmentName);
                pDuty = position.pDuty;
            },
        })
    }

    function getPosition() {
        //页面层
        layer.open({
            title: ['岗位描述',
                'background:#EFEFEF; color:#000;'],
            type: 1,
            // skin: 'layui-layer-rim', //加上边框
            area: ['420px', '240px'], //宽高
            content: dRemark
        });
    }

    function getDepartment() {
        //页面层
        layer.open({
            title: ['部门介绍',
                'background:#EFEFEF; color:#000;'],
            type: 1,
            // skin: 'layui-layer-rim', //加上边框
            area: ['420px', '240px'], //宽高
            content: pDuty
        });
    }

    // 预先加载
    // layui.use('form', function () {
    //     // 注册变量
    //     var form = layui.form;
    //
    //     //监听提交form里面的submit标签
    //     form.on('submit(updateInfo)', function (data) {
    //         $.ajax({
    //             url: "updateInforEmployee.do",
    //             data: {
    //                 "eEmail": $("#eEmail").val(),
    //                 "eUrgentPerson": $("#eUrgentPerson").val(),
    //                 "eUrgentPhone": $("#eUrgentPhone").val(),
    //                 "eHometown": $("#eHometown").val(),
    //                 "ePhone": $("#ePhone").val()
    //             },
    //             type: "post",
    //             dataType: "json",
    //             success: function (result) {
    //                 if (result.code == 100) {
    //                     layer.alert("个人信息修改成功", {title: "操作提示"})
    //                 } else {
    //                     layer.alert(result.message, {title: "操作提示"})
    //                 }
    //             },
    //         })
    //         return false;
    //     });
    // });

</script>
</html>
